package com.lytoyo.neihanduanzi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lytoyo.neihanduanzi.model.blog.BlogComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Package:com.lytoyo.neihanduanzi.mapper
 *
 * @ClassName:BlogCommentMapper
 * @Create:2025/3/16 10:49
 **/
@Mapper
public interface BlogCommentMapper extends BaseMapper<BlogComment> {
    /**
     * 查询父评论
     * @param page
     * @param blogId
     * @return
     */
    List<BlogComment> selectRootComments(@Param("page") Page<BlogComment> page,@Param("blogId") Long blogId);
}
